package com.zrrd.thread._08_pool;

import java.time.LocalDate;
import java.util.Properties;

/**
 * @author WanJl
 * @version 1.0
 * @title Demo
 * @description
 * @create 2023/10/29 19:47
 */
public interface UserService {
    /**
     * 用户注册
     * @param user
     */
    void register(User user);

    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     */
    String login(String username,String password);
}
class User{
    private String id;
    private String username;
    private String password;
    private LocalDate registerTime;

    public User() {
    }

    public User(String id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
class AAA{
    public static void main(String[] args) {
        System.out.println(LocalDate.now());
    }
}